﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.DTO
{
    /// <summary>
    /// 购物车商品DTO
    /// </summary>
    public class ProductShoppingCarDto
    {
        #region 必填字段
        /// <summary>
        /// 会员Id (登录的会员）
        /// </summary>
        [Required]
        public Guid MemberId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        [Required]
        public Guid SKUId { get; set; }

        /// <summary>
        /// 商品价格-表示此次购买的价格
        /// </summary>
        [Required]
        public decimal Price { get; set; }

        /// <summary>
        /// 购买的数量
        /// </summary>
        [Required]
        public int Number { get; set; } = 1;

        #endregion

        #region 非必填

        public string? Name { get; set; } //商品名称
        public string? Specs { get; set; } //商品规格
        public string? Image { get; set; } //主图
        public string? StroeName { get; set; } //店铺名称

        #endregion

        public bool IsChecked { get; set; } = false;
    }
}
